package com.oracle.pojo.dto;

import java.io.Serializable;

public class SearchNewsDTO implements Serializable {

    private String title;

    private String author;

    private String category;

    private Integer pageIndex = 1;

    private Integer pageSize = 10;

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public SearchNewsDTO(String title, String author, String category) {

        this.title = title;
        this.author = author;
        this.category = category;
    }

    public SearchNewsDTO() {

    }

    @Override
    public String toString() {
        return "SearchNewsDTO{" +
                "title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", category='" + category + '\'' +
                '}';
    }
}
